# from app.utils.chatgpt import chat_gpt_azure
# from app.utils.upload_in_milvus_util import search_metedata
#
# filter_prompt = ("现在给你一个prompt，请根据这个prompt拼接 一个filter。要求："
#                  "1.返回拼接后的prompt，如果没有拼接的内容，直接返回'无拼接内容' "
#                  "2.只返回拼接后内容 "
#                  "示例如下：prompt为:Identify all SFAT rulings in 2022 拼接的filter为: year == '2022' and cate =='Ruling'  "
#                  "示例如下：prompt为:Identify all SFAT rulings in 2021 拼接的filter为: year == '2021' and cate =='Ruling'  "
#                  "示例如下：prompt为:Identify all SFAT determination in 2021 拼接的filter为: year == '2021' and cate =='Determination'  "
#                  "prompt为:rulings 在 2022有几个"
#                  )
# filter_prompt_result = chat_gpt_azure(filter_prompt)
# print("Filter Prompt Result:")
# print(filter_prompt_result)
# # filter_prompt_result为空字符串
# if "无拼接内容" in filter_prompt_result:
#     sparse_results = search_metedata("sfat_metadata")
# else:
#     # 如果是对文件列表的查询
#     sparse_results = search_metedata("sfat_metadata", filter=filter_prompt_result)